<?php 
namespace app\admin\validate;
use think\Validate;

	class Level extends Validate
	{
		//当前验证规则
		protected $rule=[
			'lname'=>'unique:level,lname,lid',
		];
		//验证提示信息
		protected $message = [
			'lname'=>[
				'unique' =>'该车级已存在'
			],
		];
	}